﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace MO.BusinessServer.Web
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            //ConfigAccess.RunPath = HttpRuntime.AppDomainAppPath; //Server.MapPath("~");
            //DbOperation.Dispose();
            //File.WriteAllText("c:\\tianyu\\1.txt", string.Format("{0}\r\n{1}\r\n{2}\r\n{3}\r\n", Assembly.GetAssembly(typeof(ConfigAccess)).Location, Assembly.GetAssembly(typeof(ConfigAccess)).CodeBase, HttpRuntime.AppDomainAppPath, ConfigAccess.RunPath));
            List<Assembly> list=new List<Assembly>();
            list.Add(Assembly.Load("MO.BusinessServer"));
            Communicate.CommunicateManage.Init(list, UserManager.LoginCheck);
        }

        protected void Session_Start(object sender, EventArgs e)
        {
        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}